package com.estore.DEMO01;

import java.io.File;
import java.io.FileWriter;
import java.io.Writer;

public class HG {
    public static void  main(String[] args) throws Exception {
        File file = new File("C:" + File.separator + "muyu" + File.separator + "vip" + File.separator + "demo.txt");
        if (!file.getParentFile().exists()) {
            file.getParentFile().mkdirs();
        }
        try (Writer out = new FileWriter(file)) {
            out.write("暮烟科技：www.demo.com\n");
            out.append("的hi欸hi：edu.demo.com");
        } catch (Exception e) {
        }
    }
}
